package com.ycsj.goldmedalnewconcept.constant;

/**
 * 链接地址
 * 
 * @author zsq
 *
 */

public class NetConstant {


	public static final String HOST = "https://moregolden.com:8081/";  //https外网正式服务器
	public static final String HOST2 = "https://moregolden.com:6061/";	//https外网正式服务器
	public static final String H5 = "https://moregolden.com:8081/";	//https外网正式服务器

//	public static final String HOST = "http://m.moregolden.com:8080/";  //外网正式服务器
//	public static final String HOST2 = "http://m.moregolden.com:6060/";	//外网正式服务器
//	public static final String H5 = "http://m.moregolden.com:8080/";	//外网正式服务器
	
//	public static final String HOST = "http://139.129.213.183:8060/";   //外网测试服务器
//	public static final String HOST2 = "http://139.129.213.183:6080/";	//外网测试服务器	
//	public static final String H5 = "http://139.129.213.183:8060/";		//外网测试服务器
	
	

	
//http://139.129.57.83:8080/
	//http://192.168.0.249:8080/
//	http://192.168.0.198:8080/App_Class/MiniClass/LevelOne2.aspx?bookid=301
//	public static final String HOST = "http://139.129.57.83:8080/";m.moregolden.com
//	public static final String HOST = "http://139.129.57.83:8080/";
//	public static final String HOST2 = "http://139.129.57.83:6060/";
	

//	public static final String HOST = "http://192.168.0.249:18080/";
//	public static final String HOST2 = "http://192.168.0.249:16060/";
//	public static final String H5 = "http://192.168.0.249:18080/";
	
//	public static final String HOST = "http://192.168.0.198:8080/";
//	public static final String HOST2 = "http://192.168.0.198:6060/";
//	public static final String H5 = "http://192.168.0.198:8080/";
	
	public static final String REGISTER = HOST + "App_Class/register";
	public static final String LOGIN = HOST + "App_Class/login";
	public static final String CLASSTEST = HOST + "App_Class/ClassTest";
	public static final String WORDLEARNING = HOST + "App_Class/WordLearning";
	public static final String MINICLASS = HOST + "App_Class/MiniClass";
	public static final String ACCOUNTINFO = HOST + "User_Manage/AccountInfo";
	public static final String UNITTEST = HOST + "App_Class/UnitTest";
	public static final String USERFAVOR = HOST + "User_Manage/UserFavor";
	public static final String GRAMMAR = HOST + "App_Class/Grammar";
	public static final String TESTBANK = HOST2 + "Test_Bank/UnitTest";
	public static final String USERONLINE = HOST + "User_Manage/UserOnline/";
	public static final String FRIENDLIST = HOST + "im/friend/GetUserFriendList.aspx";
	public static final String USERTOKEN = HOST + "im/connect/GetUserToken.aspx";
	public static final String RefreshUserInfo = HOST + "im/connect/RefreshUserInfo.aspx";
	public static final String ycsj_platform = HOST + "ycsj_platform/ycsj_platform.aspx";
	public static String formatUrl(String url) {
		if (url.startsWith("http")) {

			return url;

		} else {
			return HOST + url;
		}
	}
}
